package com.shelpe.services.sinbad.readdao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shelpe.services.sinbad.model.CampaignidAndKeywordids;
import com.shelpe.services.sinbad.model.Keyword;
import com.shelpe.services.sinbad.model.KeywordExample;
import com.shelpe.services.sinbad.model.KeywordID;

public interface KeywordMapper {
	int countByExample(KeywordExample example);

	List<Keyword> selectByExample(KeywordExample example);

	Keyword selectByPrimaryKey(Long keywordId);

	List<CampaignidAndKeywordids> selectCampaignidAndKeywordidsByExample(KeywordExample example);

	List<KeywordID> selectIDsByExample(KeywordExample example);

	List<Keyword> selectByKeywords2Limit(@Param("user_id") long userID, @Param("adgroup_id") List<Long> adgroupIDs,
			@Param("lower_limit") int lower, @Param("upper_limit") int upper,
			@Param("orderByClause") String orderByClause, @Param("sort") String sort, @Param("start") int start,
			@Param("end") int end, @Param("device") String device);
}